/bin/sh: line 21: cd: riscv64: No such file or directory
make[2]: *** [Makefile:507: all-recursive] Error 1
make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/ltrace-0.7.91/sysdeps/linux-gnu'
make[1]: *** [Makefile:398: all-recursive] Error 1
make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/ltrace-0.7.91/sysdeps'
make: *** [Makefile:875: all-recursive] Error 1


sed -e 's/PPC/RISCV/g' -e 's/ppc/riscv/g'  未保存
上述这些命令都只是将替换结果打印到屏幕上，如果想保存结果到文件中，就需要加上“-i”参数
sed -i -e 's/PPC/RISCV/g' -e 's/ppc/riscv/g'

config.status: error: invalid argument: `sysdeps/linux-gnu/riscv/Makefile'
make[3]: *** [Makefile:370: Makefile] Error 1
make[3]: Leaving directory '/home/abuild/rpmbuild/BUILD/ltrace-0.7.91/sysdeps/linux-gnu/riscv64'
make[2]: *** [Makefile:507: all-recursive] Error 1
make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/ltrace-0.7.91/sysdeps/linux-gnu'
make[1]: *** [Makefile:398: all-recursive] Error 1
make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/ltrace-0.7.91/sysdeps'
make: *** [Makefile:875: all-recursive] Error 1


grep -rn 'riscv'
Makefile.in:110:subdir = sysdeps/linux-gnu/riscv
Makefile.in:366:        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign sysdeps/linux-gnu/riscv/Makefile'; \
Makefile.in:368:          $(AUTOMAKE) --foreign sysdeps/linux-gnu/riscv/Makefile

sed -i -e 's/riscv/riscv64/g' Makefile.in



ltrace-0.7.91]$ grep -rn 'riscv' |less
config.log:1574:  $ ./config.status sysdeps/linux-gnu/riscv/Makefile depfiles
config.log:1576:on openEuler-riscv64
config.log:1578:config.status:768: error: invalid argument: `sysdeps/linux-gnu/riscv/Makefile'
config.log:1591:  $ ./config.status sysdeps/linux-gnu/riscv/Makefile depfiles
config.log:1593:on openEuler-riscv64
config.log:1595:config.status:768: error: invalid argument: `sysdeps/linux-gnu/riscv/Makefile'

less -N config.status
    760     "sysdeps/linux-gnu/s390/Makefile") CONFIG_FILES="$CONFIG_FILES sysdeps/linux-gnu/s390/Makefile" ;;
    761     "sysdeps/linux-gnu/sparc/Makefile") CONFIG_FILES="$CONFIG_FILES sysdeps/linux-gnu/sparc/Makefile" ;;
    762     "sysdeps/linux-gnu/x86/Makefile") CONFIG_FILES="$CONFIG_FILES sysdeps/linux-gnu/x86/Makefile" ;;


[abuild@openEuler-riscv64 riscv64]$ grep 'sysdeps' Makefile
# sysdeps/linux-gnu/riscv/Makefile.  Generated from Makefile.in by configure.
subdir = sysdeps/linux-gnu/riscv
AM_CPPFLAGS =   -DSYSCONFDIR=\"$(sysconfdir)\"  -DPKGDATADIR=\"$(pkgdatadir)\"          -I$(top_srcdir)/sysdeps/linux-gnu/riscv64       -I$(top_srcdir)/sysdeps/linux-gnu  -I$(top_srcdir)/sysdeps         -I$(top_srcdir)
abs_builddir = /home/abuild/rpmbuild/BUILD/ltrace-0.7.91/sysdeps/linux-gnu/riscv
abs_srcdir = /home/abuild/rpmbuild/BUILD/ltrace-0.7.91/sysdeps/linux-gnu/riscv
        echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign sysdeps/linux-gnu/riscv/Makefile'; \
          $(AUTOMAKE) --foreign sysdeps/linux-gnu/riscv/Makefile


sed 's/http:///https://www.cyberciti.biz/g' input.txt

sed 's/subdir = sysdeps/linux-gnu/riscv/subdir = sysdeps/linux-gnu/riscv64/' Makefile


grep  -rn 'sysdeps/linux-gnu/riscv/Makefile'
sysdeps/linux-gnu/riscv64/Makefile:2:# sysdeps/linux-gnu/riscv/Makefile.  Generated from Makefile.in by configure.
sysdeps/linux-gnu/riscv64/Makefile:366: echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign sysdeps/linux-gnu/riscv/Makefile'; \
sysdeps/linux-gnu/riscv64/Makefile:368:   $(AUTOMAKE) --foreign sysdeps/linux-gnu/riscv/Makefile


make
make  all-recursive
make[1]: Entering directory '/home/abuild/rpmbuild/BUILD/ltrace-0.7.91'
Making all in sysdeps
make[2]: Entering directory '/home/abuild/rpmbuild/BUILD/ltrace-0.7.91/sysdeps'
Making all in linux-gnu
make[3]: Entering directory '/home/abuild/rpmbuild/BUILD/ltrace-0.7.91/sysdeps/linux-gnu'
Making all in riscv64
make[4]: Entering directory '/home/abuild/rpmbuild/BUILD/ltrace-0.7.91/sysdeps/linux-gnu/riscv64'
make[4]: *** No rule to make target 'all'.  Stop.
make[4]: Leaving directory '/home/abuild/rpmbuild/BUILD/ltrace-0.7.91/sysdeps/linux-gnu/riscv64'
make[3]: *** [Makefile:507: all-recursive] Error 1
make[3]: Leaving directory '/home/abuild/rpmbuild/BUILD/ltrace-0.7.91/sysdeps/linux-gnu'
make[2]: *** [Makefile:398: all-recursive] Error 1
make[2]: Leaving directory '/home/abuild/rpmbuild/BUILD/ltrace-0.7.91/sysdeps'
make[1]: *** [Makefile:875: all-recursive] Error 1
make[1]: Leaving directory '/home/abuild/rpmbuild/BUILD/ltrace-0.7.91'
make: *** [Makefile:549: all] Error 2

https://src.fedoraproject.org/repo/pkgs/
